package File;

import java.io.File;

public class Demo6 {
    public static void main(String[] args) {
        // 重命名起到 "移动" 的作用
        File file = new File("./test2.txt");
        File newFile = new File("./src/test2.txt");
        // boolean result = file.renameTo(newFile);
        // System.out.println("result = " + result);

        newFile.delete();
    }
}
